package org.example.item.feign;

import org.example.item.contract.request.ItemRequestForInventory;
import org.example.misc.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("item-server")
@RequestMapping("/item")
public interface ItemFeign {
    /**
     * 扣减库存
     */
    @PostMapping("deductInventory")
    Result<Boolean> deductInventory(@RequestParam ItemRequestForInventory request);
}
